@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
// @import './qup-common.scss';
@import '~qup-component/theme/qup-common.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  font-size: 12px;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
  font-size: 19.20px;
  overflow-y: hidden;
  /*默认以设计稿1920*/
}

@media only screen and (max-width: 1366px) {
  html {
    font-size: 13.66px;
  }
}

@media only screen and (max-width: 1440px) {
  html {
    font-size: 14.44px;
  }
}

/* animated.css动画持续时间 */
.animated {
  -webkit-animation-duration: .5s;
  animation-duration: .5s; // 动画执行时间
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
/* animated.css动画持续时间 */

#app {
  height: 100%;
}


.main-container{
  background-color: #f0f0f0;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

 .el-table__empty-block {
  box-sizing: content-box !important;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: inline-block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

//分页通用样式
.pager-box{
  text-align: center;
  margin-top: 40px;

  .el-pagination{

    .el-input__inner{
      font-size: 12px;
    }

    .el-pager li{
      font-size: 12px;
    }
  }
}

// 白底满屏
.all-height{
  background-color: #fff;
  height: calc(100vh - 96px);
}

// 左侧选择列表通用样式
.left-choose-list-box{
  background-color: #fff;
  box-shadow:0px 2px 20px 0px rgba(153,153,153,0.2);

  .left-choose-list-header{

    .title{
      position: relative;
      padding: 20px;
      padding-bottom: 10px;

      .add-icon-box{
        position: absolute;
        right: 20px;
        bottom: 6px;

        .add{
          font-size: 24px;
          color: $qup-color-primary;
          cursor: pointer;
        }
      }
    }

    .search{
      padding-left: 20px;
      padding-right: 10px;
      margin-bottom: 10px;

      .el-input__inner{
        border: 0;
        padding-left: 20px !important;
        padding-right: 0 !important;
        height: 20px !important;
        line-height: 20px !important;
      }

      .el-input__prefix{
        left: 0;

        .tree-search-icon{
          font-size: 16px;
          color: $colorA;
          margin-top: 2px;
        }
      }
    }
  }

  .left-choose-list-content{
    padding: 0 20px;
  }
}

// 启用禁用
.icon-off {
  margin-right: 10px !important;
  font-size: 16px !important;
  vertical-align: middle !important;
  color: $qup-color-danger;
}

.icon-on {
  margin-right: 10px !important;
  font-size: 16px !important;
  vertical-align: middle !important;
  color: $qup-color-primary;
}

// 系统消息提示层
.el-dialog.system-notice-message{
  .el-dialog__header{
    border-bottom: 0;
    padding: 0 10px;
  }
  .el-dialog__body{
    padding: 0 20px 15px 32px;
    color: $colorB;
  }
  .system-notice-title{
    font-size: 12px;
    font-weight: 600;
    .system-notice-icon{
      color: $qup-color-warning;
      margin-right: 5px;
    }
    .system-notice-time{
      color: $colorB;
      font-size: 10px;
      font-weight: normal;
      margin-left: 20px;
    }
  }
  .system-notice-content{
    min-height: 60px;

    .link-style{
      color: $qup-color-primary;
      margin: 0 2px;

      &:hover{
        text-decoration: underline;
      }
    }
  }
  .system-notice-footer{
    padding-top: 10px;
    text-align: right;
  }
}

// button容器
.button-container{
  padding-top: 22px;
  line-height: 1em;
  @include flex($wrap:wrap,$justify:flex-end);
  &>*{
    line-height: inherit;
  }
  &>:not(:first-child){
    margin-left: 9px;
  }
  .next-button{
    width: 100%;
    text-align: center;
  }
  i{
    flex-grow: 1;
  }
}
// form-item提示
.input-tip{
  line-height: 1.2em;
  color: rgba(0,0,0,0.65);
  &>span{
    color: red;
  }
}
// disabled
button[class*="is-disabled"]{
  background-color: #EBEEF5 !important;
  border: none;
}
.call-icon{
  cursor: pointer;
  color:#16BC83;
  width:1.4rem !important;
  height:1.4rem !important;
}
.table-other{
  .el-button--text{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
// 隐藏qup-component组件功能按钮
.function-box{
  display: none !important;
}

// 修改el-form-item 下el-button默认间距
.el-form-item {
  .el-button + .el-button{
    margin-left: 9px !important;
  }
}

// el-upload-list__item 去掉默写页面outline
.el-upload-list__item{
  outline: none !important;
}
// 31	接线组	页面	系统提示的“操作成功”会挡住人员点击评价	建议系统弹出的“操作成功”不要在中间位置，挡住评价按键。	体验优化	一般	待处理	
.el-message{
  // top: 125px !important;
  margin-top: 105px !important;
}

.table-list-header th{
  border-top: none !important;
}


/*消息提示框*/
.custom-notice-bottom{
  border-radius: 4px;
  border: 1px solid $green;
  padding-right: 15px;
  .el-notification__closeBtn{
    right:5px;
    top: 14px;
  }
  .el-notification__group{
    margin: 0 ;
  }
  .el-notification__title{
    margin-bottom: 10px;
    font-size: 14px;
    margin-right: 10px;
  }
  .el-notification__content{
    margin-top: 0;
    line-height: 20px;
  }
}